home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / program / amos / amoslist.lzh / AMOSLIST / 000393_amos-request@svcs1.digex.net_Fri Sep 29 12:50:57 1995.msg < prev    next >
Internet Message Format  |  1995-10-02  |  3KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224]) by mail1.access.digex.net (8.6.12/8.6.12) with ESMTP id MAA15091;  for <mcox@access.digex.net> ; Fri, 29 Sep 1995 12:50:56 -0400
  2. Received: (from daemon@localhost) by svcs1.digex.net (8.6.12/8.6.12) id KAA20050 for amos-out; Fri, 29 Sep 1995 10:17:17 -0400
  3. Received: from mail1.access.digex.net (mail1.access.digex.net [205.197.247.2]) by svcs1.digex.net (8.6.12/8.6.12) with ESMTP id KAA20046 for <amos-list@svcs1.digex.net>; Fri, 29 Sep 1995 10:17:15 -0400
  4. Received: from tlti.tokem.fi (mystic@tlti.tokem.fi [193.64.110.2]) by mail1.access.digex.net (8.6.12/8.6.12) with ESMTP id KAA24006;  for <AMOS-LIST@access.digex.net> ; Fri, 29 Sep 1995 10:17:10 -0400
  5. Received: (from mystic@localhost) by tlti.tokem.fi (8.6.12/8.6.9) id QAA19083; Fri, 29 Sep 1995 16:14:14 +0200
  6. Date: Fri, 29 Sep 1995 16:11:19 +0200 (EET)
  7. From: Petri Hakkinen <mystic@tlti.tokem.fi>
  8. Subject: Re: Help me!
  9. To: M.Berionne@agora.stm.it
  10. cc: AMOS-LIST@access.digex.net
  11. In-Reply-To: <9509271355.aa19275@agora.stm.it>
  12. Message-ID: <Pine.3.87.9509291619.G18433-0100000@tlti>
  13. MIME-Version: 1.0
  14. Content-Type: TEXT/PLAIN; charset=US-ASCII
  15. Status: RO
  16. X-Status: 
  17.  
  18.  
  19.  
  20. > >PH> > This should do it:
  21. > >PH> >
  22. > >PH> > Procedure _PART_OF_CIRCLE[R,A,B,X,Y,STP]
  23. > >PH> >    Gr Locate X+Sin(A)*R,Y-Cos(B)*R
  24. > >PH> >    For N=A+STP To A+B Step STP
  25. > >PH> >       Draw To X+Sin(N)*R,Y-Cos(N)*R
  26. > >PH> >    Next N
  27. > >PH> > EndProc
  28. > >PH>
  29. > >PH> If you want speed you should put Sin & Cos into arrays. Floating point
  30. > >PH> calculations are really sssslllooooowwwwww.....
  31. > >PH>
  32. > >PH> Example:
  33. > >PH>
  34. > >PH> dim si(360),co(360)
  35. > >PH> for t=0 to 360:si(t)=sin(t)*256:co(t)=cos(t)*256:next
  36. > >PH> and the draw part should be:
  37. > >PH> Draw To X+(SI(N)*R)/256,Y-(CO(N)*R)/256
  38. > >PH>
  39. > >PH> the /256 is done with bitshifting so it don't take much of time,
  40. > >PH> at least when compiled. Btw. isn't AMCAF's Turbo draw much faster?
  41. > >PH> If you have AMCAF (or Turbo extension) use it instead of amos!
  42. > Why do you use *256 and then /256?? Does it give extra speed??
  43.  
  44. to get rid of the floating points!   If you don't do it like that
  45. you have to use SI#() and CO#() which take more memory and are much
  46. slower!
  47.  
  48. Pete
  49.  
  50. Petri Hakkinen
  51. mystic@tlti.tokem.fi
  52.  
  53. >  > AMCAF can also be used for the precalculated Sines and Cosines (QSin,
  54. >  > QCos)
  55. >  > It uses 0-1023 as 0-359 degrees, so triple (approx.) STP.
  56. > But I'm not registered to AMCAF and then I couldn't compile it!!
  57.  
  58. Then you should register! :)))
  59.  
  60.